import React ,{useEffect} from 'react'
import { useDispatch ,useSelector } from 'react-redux';
import axios from '../../Utils/Request';
import { ALLLIST } from '../../Type/Store.d';
import '../../Api/DataList';

function Index() {
    const Dispatch = useDispatch();
    
    useEffect(()=>{
        axios.get('/list').then(res=>{
            Dispatch({
                type:ALLLIST,
                payload:res.data.list
            })
        })
    },[])
    return (
        <div className='Index'>
            Index   
        </div>
    )
}

export default Index